<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>多级评论</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
    <style>
        .item {
            width: 600px;
            display: flex;
            margin-bottom: 20px;
        }

        .photo {
            height: 60px;
            width: 60px;
            background-color: #666;
            border-radius: 15px;
            margin-right: 20px;
        }

        .text {
            flex: 1;
            padding: 20px;
            background-color: #d7d7d7;
            border-radius: 15px;
        }

        .title {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .content {
            text-indent: 2em;
        }

    </style>
</head>
<body>
<div class="layui-row">
    <div class="layui-col-xs6">
        <div class="grid-demo grid-demo-bg1">
            <form>
                <div class="layui-form-item layui-form-text">

                    <div class="layui-input-block">
                        <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
                    </div>
                </div>
                <button class="layui-btn layui-btn-primary layui-border-blue" style="float: right;margin-top:0px" >发布</button>
            </form>



            <div class="item">
                {foreach $dataList as $v}
                <div class="text">
                    <div class="title">
                        <div class="photo"></div><div>{$v.user_id}</div><div>{$v.add_time}</div>


                    </div>
                    <div class="content">
                      {$v.content}
                    </div>
                </div>
                {/foreach}
            </div>


        </div>
    </div>
</div>



</body>
</html>
<!-- 引入 layui.js -->
<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>